﻿function AdvancedSearchModel(data) {
    this.Keywords = ko.observable(data.Keywords ? data.Keywords : "");
    this.Name = ko.observable(data.Title ? data.Title : "");
    this.Location = ko.observable(data.Location ? data.Location : "");
    this.AvailabilityStatus = ko.observable(data.AvailabilityStatus ? data.AvailabilityStatus : 0);
    this.HourRate = ko.observable(data.HourRate ? data.HourRate : 0);
    this.DailyRate = ko.observable(data.DailyRate ? data.DailyRate : 0);
    this.AnnualRate = ko.observable(data.AnnualRate ? data.AnnualRate : 0);
    this.EmploymentType = ko.observable(data.EmploymentType ? data.EmploymentType : 0);
    this.Educations = ko.observableArray(data.Educations ? data.Educations : []);
    this.Countries = ko.observableArray(data.Countries ? data.Countries : []);
    this.Categories = ko.observableArray(data.Categories ? data.Categories : []);
}

